<?php
require_once ('config.php');
require_once ('databasefunctions.php');
require_once ('displayfunctions.php');
user_logon();
require_once("./language/" . $_SESSION['UserLanguage']);
html_header();
?>

<script language="JavaScript">
        self.resizeTo(340, 520);
        self.moveTo(0,0);
</script>

<br>
<table border='1' cellspacing="0">
<tr>
        <td bgcolor='<? echo $color1 ?>'><? echo $langdailyoperation ?>
        <td><a href='#' onmouseover="manualchange('transactionlisting')" onclick='new_window("billtransaction.php")'><? echo $langtransactionlist ?></a>
        <br><a href='#' onmouseover="manualchange('timesheetentry')" onclick='new_window("calendar.php")'><? echo $langtimesheetentry ?></a>
        <br><a href='#' onmouseover="manualchange('expensereport')" onclick='new_window("expense_report.php")'><? echo $langexpensereport ?></a>
                <?
                if ($_SESSION['AccessLevel'] <= 2) {
                        echo "\n<br><a href='#' onmouseover=\"manualchange('billprinting')\"
                                                onclick='new_window(\"billprinting.php\")'>$langbillprinting</a>";
                        echo "\n<br><a href='#' onmouseover=\"manualchange('writeofftransactions')\"
                                                onclick='new_window(\"writeoff.php\")'>$langwriteoff</a>";
                }
                if ($_SESSION['AccessLevel'] <= 2) {
                        echo "\n<tr><td bgcolor='$color1'>$langmastersetup<td>";
                        echo "\n<a href='#' onmouseover=\"manualchange('clientmaster')\"
                                        onclick='new_window(\"clientmaster.php\")'>$langclientmaster</a>";
                        echo "\n<br><a href='#' onmouseover=\"manualchange('projectmaster')\"
                                        onclick='new_window(\"projectmaster.php\")'>$langprojectmaster</a>";
                        echo "\n<br><a href='#' onmouseover=\"manualchange('jobmaster')\"
                                                onclick='new_window(\"jobmaster.php\")'>$langjobmaster</a>";
                        echo "\n<br><a href='#' onmouseover=\"manualchange('chargetypemaster')\"
                                                onclick='new_window(\"chargetypemaster.php\")'>$langchargetypemaster</a>";
                }
                if ($_SESSION['AccessLevel'] == 1) {
                        echo "\n<br><a href='#' onmouseover=\"manualchange('companymaster')\"
                                                onclick='new_window(\"companymaster.php\")'>$langcompanymaster</a>";
                        echo "\n<br><a href='#' onmouseover=\"manualchange('staffmaster')\"
                                                onclick='new_window(\"staffmaster.php\")'>$langstaffmaster</a>";
                        echo "\n<br><a href='#' onmouseover=\"manualchange('chargeratemaster')\"
                                                onclick='new_window(\"chargeratemaster.php\")'>$langchargeratemaster</a>";
                        echo "\n<br><a href='#' onmouseover=\"manualchange('openperiodcontrol')\"
                                                onclick='new_window(\"openperiod.php\")'>$langopenperiodcontrol</a>";
                        echo "\n<br><a href='#' onmouseover=\"manualchange('languagemaster')\"
                                                onclick='new_window(\"languagemaster.php\")'>$langlanguagemaster</a>";
                }
                ?>
</table>

<script>
        function new_window(program) {
                //alert('width='+self.outerWidth);
                window.open(program, '' ,'resizable=1, toobars=no, scrollbars=1, width=800, height=540, left='+self.outerWidth+', top=0');
        }

        function manualchange(topic) {
                // top.rightpane.location='./documentation/program_summary.html#' + topic ;
        }
</script>
<?
html_footer();

?>
